package com.xuerhua.yxt.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xuerhua.yxt.model.WorkApprovalConf;
import com.xuerhua.yxt.page.Page;

public interface WorkApprovalConfMapper {

    int insertSelective(WorkApprovalConf record);

    WorkApprovalConf selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WorkApprovalConf record);
    
    List<WorkApprovalConf> selectListByPage(Page<WorkApprovalConf> page);
    
    WorkApprovalConf selectByItemCode(@Param("itemCode") String itemCode, @Param("schoolId") Integer schoolId);
    
    int selectCountWorkApprover(@Param("itemCode")String itemCode, 
    		@Param("teacherId")Integer teacherId, @Param("schoolId")Integer schoolId);

}